<?php
    
if(is_array($this->news) && count($this->news)>0){
    $info = array_shift($this->news);
    
    $tags_allow = "<br>";
    $info->description = trim(strip_tags($info->description, $tags_allow));
?>                     
                           <div class="tex-noidung-gioithieu">
                                 <div class="sukien-left">
                                       <p class="sukien-tieude"><strong><a href="http://blog.tamtay.vn/<?php echo $info->username;?>/blog/entry/<?php echo $info->nid;?>" class="title_entry" target="_blank"><?php print htmlspecialchars($info->title); ?></a></strong>  
                                       </p> 
                                       <p class="sukien-thoigian"><?php print date("H:i", $info->changed); ?> ngày <?php print date("d/m/Y", $info->changed); ?></p>
                                       <p class="sukien-noidung">
                                           <?php print truncate_utf8($newsObj->description, 500, TRUE, TRUE); ?></p>
                                 </div>
                                 <div class="sukien-right">
                                      <ul>
                                        <?php
                                            if(is_array($this->news) && count($this->news)>0){
                                                for($i=0; $i<count($this->news); $i++){
                                                    $newsObj = $this->news[$i];
                                                ?>
                                                                        <li><a href="http://blog.tamtay.vn/<?php echo $newsObj->username;?>/blog/entry/<?php echo $newsObj->nid;?>" class="title_entry" target="_blank"><?php print htmlspecialchars($newsObj->title); ?></a></li>
                                                <?php
                                                }// End of for loop
                                            }// End of if
                                            ?>
                                      </ul>
                                 </div>
                                 <div class="clear"></div>
                           </div>
                           
<?php
}    // End of if
?>